package com.cgmnx.admin.service.rbac;

import com.cgmnx.admin.common.bean.Limiter;
import com.cgmnx.admin.dao.entity.rbac.RoleEntity;
import com.cgmnx.admin.dao.entity.rbac.RoleUserRelationEntity;

import java.util.List;


public interface RoleUserRelationService {

    List<RoleUserRelationEntity> queryByUserIdList(List<String> idList);

    void save(RoleUserRelationEntity entity);

    int saveAll(List<RoleUserRelationEntity> list);

    void saveAll(List<Integer> roleIdList, String userId, String currentUser);

    Integer deleteByUserIdList(List<String> userIdList);

    List<RoleUserRelationEntity> queryByRoleId(Integer id);

    Integer count(Integer id);

    List<RoleEntity> queryPage(Integer id, Limiter limiter);

    void deleteByUserIdListAndRoleId(Integer roleId, List<String> userIds);
}
